package net.maxwoods.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionActivationListener;
import javax.servlet.http.HttpSessionEvent;

@WebListener
public class MyHttpSessionActivationListener implements HttpSessionActivationListener {

    private static final Logger logger = LoggerFactory.getLogger(MyHttpSessionActivationListener.class);

    @Override
    public void sessionWillPassivate(HttpSessionEvent se) {
        logger.info("=============={}", se);
    }

    @Override
    public void sessionDidActivate(HttpSessionEvent se) {
        logger.info("=============={}", se);
    }


}
